package com.cloudkinto.controller.qianyi;


import com.cloudkinto.base.BaseController;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.qianyi.QianyiErpService;
import com.cloudkinto.service.qianyi.vo.QianyiErpRequest;
import com.cloudkinto.service.qianyi.vo.QianyiResponse;
import com.cloudkinto.service.user.WxUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ding
 * @since 2021-02-05
 */
@RestController
@Api(tags = "千易erp接口")
@RequestMapping("/openapi/qianyi")
public class QianyiErpController extends BaseController {
    private final Logger logger = LoggerFactory.getLogger(QianyiErpController.class);

    @Autowired
    private QianyiErpService service;
    @Autowired
    private WxUserService wxUserService;

    @PostMapping("")
    @ApiOperation(value = "新增初始化", notes = "新增初始化")
    public QianyiResponse comPost(@RequestBody QianyiErpRequest request) {
        return service.comPost(request);
    }
}

